import 'package:flutter/material.dart';

/*
 * 图片扩展，方便后续统一替换修改
 */
class ImageLoad {
  static Widget loadAssets(String name,
      {double width,
      double height,
      BoxFit fit = BoxFit.cover,
      GestureTapCallback tap}) {
    return GestureDetector(
      onTap: tap,
      child: Image.asset(
        "assets/" + name,
        width: width,
        height: height,
        fit: fit,
      ),
    );
  }
}
